package com.atguigu.dao;

import com.atguigu.pojo.MysqlServiceConfig;

import java.util.List;

public interface MysqlServiceConfigDao {
    //每个方法中都带有所操作类的名字,为了以后看到这个方法,就知道是干什么的
    public int addMysqlServiceConfig(MysqlServiceConfig mysqlServiceConfig);
    public int deleteMysqlServiceConfigById(String id);
    public int updateMysqlServiceConfig(MysqlServiceConfig mysqlServiceConfig);
    public MysqlServiceConfig queryMysqlServiceConfigById(String id);
    public List<MysqlServiceConfig> queryMysqlServiceConfigs();
    public MysqlServiceConfig queryMysqlServiceConfigByServiceId(String serviceId);
    public List<MysqlServiceConfig> queryMysqlServiceConfigsByPort(String port);
    public Integer queryForPageTotalCount();
    public List<MysqlServiceConfig> queryForPageItems(Integer begin, Integer pageSize);
}
